package com.czy.seed.mvc.home.entity;
import com.czy.seed.mvc.base.entity.IPrepare;
import com.czy.seed.mybatis.config.mybatis.annotations.One2Many;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Table(name = "QUOTE_OR_COMPARE")
public class QuoteOrCompare implements IPrepare{

    private static final long serialVersionUID = -7346339713241626040L;
    @Id
    private long id;
    private String commodityName;
    private String commodityNum;
    private String purchaseUnit;
    private String shippingAddress;
    private Date deadline;
    private long quotationNumber;
    private long type;
    private String number;
    private String deliveryDeadline;
    private long initiatorId;
    private int contrastType;
    private Date creationTime;
    private Date startTime;
    private String postscript;
    private long version;
    private long purchaseId;
    //更新时间
    private Date updatetime;
    //更新人
    private long updateuserid;



    /**
     * 最高限额
     */

    private BigDecimal priceCap;

    @One2Many(columns = "id=quoteOrCompareId")

    private List<Quotation> quotationList;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCommodityNum() {
        return commodityNum;
    }

    public void setCommodityNum(String commodityNum) {
        this.commodityNum = commodityNum;
    }

    public String getPurchaseUnit() {
        return purchaseUnit;
    }

    public void setPurchaseUnit(String purchaseUnit) {
        this.purchaseUnit = purchaseUnit;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public long getQuotationNumber() {
        return quotationNumber;
    }

    public void setQuotationNumber(long quotationNumber) {
        this.quotationNumber = quotationNumber;
    }

    public long getType() {
        return type;
    }

    public void setType(long type) {
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDeliveryDeadline() {
        return deliveryDeadline;
    }

    public void setDeliveryDeadline(String deliveryDeadline) {
        this.deliveryDeadline = deliveryDeadline;
    }

    public long getInitiatorId() {
        return initiatorId;
    }

    public void setInitiatorId(long initiatorId) {
        this.initiatorId = initiatorId;
    }

    public int getContrastType() {
        return contrastType;
    }

    public void setContrastType(int contrastType) {
        this.contrastType = contrastType;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getPostscript() {
        return postscript;
    }

    public void setPostscript(String postscript) {
        this.postscript = postscript;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public long getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(long purchaseId) {
        this.purchaseId = purchaseId;
    }

    public BigDecimal getPriceCap() {
        return priceCap;
    }

    public void setPriceCap(BigDecimal priceCap) {
        this.priceCap = priceCap;
    }

    public List<Quotation> getQuotationList() {
        return quotationList;
    }

    public void setQuotationList(List<Quotation> quotationList) {
        this.quotationList = quotationList;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public long getUpdateuserid() {
        return updateuserid;
    }

    public void setUpdateuserid(long updateuserid) {
        this.updateuserid = updateuserid;
    }
}
